import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './pages/home-one.vue'
import List from './pages/task-manager.vue'
import Custom from './pages/custom-list.vue'
import CustomAll from './pages/custom/custom-all.vue'
import CustomHandle from './pages/custom/custom-handle.vue'
Vue.use(VueRouter);
export default new VueRouter({
    mode:'hash',
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:Home
        },
        {
            path:'/List',
            component:List
        },
        {
            path:'/Custom',
            component:Custom,
            children:[{
                path:'/Custom',
                redirect:'/Custom/list'
            },{
                path:'/Custom/list',
                component:CustomAll
            },{
                path:'/Custom/handle',
                component:CustomHandle
            }]
        }
    ],
    
})